<?php
header("Content-type: application/xhtml+xml; charset=utf-8"); 
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
// ส่วนติดต่อกับฐานข้อมูล  
mysql_connect("localhost","root","") or die("Cannot connect the Server");       
mysql_select_db("test")        ;
mysql_query("set character set utf8");   
?>
<?php if(isset($_GET['list1']) && $_GET['list1']!=""){?>
  
  

  <?php
  $q="SELECT * FROM amphur WHERE province_id='".$_GET['list1']."' ";
  $qr=mysql_query($q);
  while($rs=mysql_fetch_array($qr)){
  ?>
   <input type="text" name="da " value="<?=$rs['amphur_id']?> <?=$rs['amphur_name']?>">
  <?php } ?>
  
<?php }?>
  
